
package com.bei_en.teacher.admin.persistence.dao.questions;

import java.util.List;
import org.apache.ibatis.session.RowBounds;
import org.springframework.stereotype.Repository;
import com.bei_en.teacher.admin.model.questions.bean.Questions;
import com.bei_en.teacher.admin.model.questions.condition.QuestionsCondition;
import com.bei_en.teacher.admin.persistence.BaseDao;

/**
 * 
 * @author Guocg
 * @date 2016-8-15 23:28:11
 */
@Repository
public interface QuestionsDao extends BaseDao<Questions, Integer> {

    Integer findNumberByCondition(QuestionsCondition vo);

    List<Questions> findPageBreakByCondition(QuestionsCondition vo, RowBounds rb);
    Integer findNumberByCondition2(QuestionsCondition vo);

    List<Questions> findPageBreakByCondition2(QuestionsCondition vo, RowBounds rb);
    Integer findNumberByCondition3(QuestionsCondition vo);

    List<Questions> findPageBreakByCondition3(QuestionsCondition vo, RowBounds rb);
    /**
     * 返回上次插入的id，用于merge
     * @return
     */
    Integer findLastInsertedId();
}
